﻿<UserControl x:Class="GrooveSharp.MusicLibrary"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="360">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Resources/GlassButton.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <DockPanel LastChildFill="True">
        <StackPanel  Orientation="Horizontal" DockPanel.Dock="Bottom" >
            <Button Height="40" Name="button1" Width="40" Click="radioTreeChecked"  Margin="5" Style="{StaticResource GlassButton}">
                <Image Width="20" Height="20" Source="/Images/refresh.png" />
            </Button>
            <Button Height="40" Name="button2" Width="40" Margin="5" Click="button2_Click" Style="{StaticResource GlassButton}" >
                <Image Width="20" Height="20" Source="/Images/plus.png" />
            </Button>
            <Button Content="Read folders" Height="23" Name="button3" Width="75" Margin="5" Click="button3_Click"/>
        </StackPanel>
        <WrapPanel Orientation="Horizontal"  DockPanel.Dock="Bottom" >
            <RadioButton Content="Folder structure" GroupName="Display" Name="radioFolder" IsChecked="True" 
                             Click="radioTreeChecked" />
            <RadioButton Content="Artist, album, track"  GroupName="Display" Name="radioArtistAlbumTrack" IsEnabled="False" 
                         Click="radioTreeChecked" />
            <RadioButton Content="Year, album, track"  GroupName="Display" Name="radioYearAlbumTrack" IsEnabled="False" 
                         Click="radioTreeChecked"/>
        </WrapPanel>
        <TreeView Name="treeViewCollection" Margin="5" >
        </TreeView>
    </DockPanel>
</UserControl>
